<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html:html>
<head>
<html:base />
<title><bean:message key="Application.Name"/> ~ <bean:message key="AgreementList"/></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/formas.css" rel="stylesheet" type="text/css">
<link href="css/calendar.css" rel="stylesheet" type="text/css">
<logic:present name="req_msg">
	<script>
		alert("<bean:write name='req_msg'/>");
	</script>
</logic:present>
</head>
<body>
 	<table cellpadding="0" cellspacing="0" class="formas">
		<tr>
		<td>
			<table cellpadding="0" cellspacing="0" class="barraNavegacion">
				<tr>
			       	<td><html:link action="/academy_welcome?action=selectAcademy" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="AcademyWelcome.Init"/></html:link>
					       	<html:link action="/academy_list" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="Menu.AcademyHeader"/></html:link>
				       		<html:link action="/draft_list?action=listDrafts" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="Agreement.drafts"/></html:link>
			        		<html:link action="/draft_edit?action=editDraft" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="Agreement.draftEdit"/></html:link>
		              	</td>
	    			</tr>
			    </table>
			    <table cellpadding="0" cellspacing="0" class="titulo">
					<tr>
						<td class="iconos_imgs"> <a href="mailto:<bean:message key="Application.mailto"/>"><img src="images/icn_correo.gif" width="18" height="18" border="0"></a></td>
						<td class="txt_titulo"><bean:message key="Agreement"/></td>
					</tr>
				</table>
				<table cellpadding="0" cellspacing="2" class="info_formas">				
				<tr>
					<td colspan="4" class="formas-encabezado"><bean:message key="Document.draftData"/></td>
				</tr>					
        		<tr> 
					<td colspan="2">
						<table cellpadding="0" cellspacing="2" class="info_titulo">
							<tr> 
								<td  class=""><strong><bean:message key="Document.draft"/></strong></td>
								<td class=""><bean:write name="bean_minuta" property="int_tk"/></td>
							</tr>
							<tr> 
								<td class=""><strong><bean:message key="Document.content"/></strong></td>
								<td class=""><bean:write name="bean_minuta" property="str_asunto"/></td>
							</tr>
						</table>
					</td>
				</tr>
					
			</table>
			<table cellpadding="0" cellspacing="2" class="info_titulo">
			<tr>					
					<td colspan="7" align="right">
						<logic:equal name="ses_usuario" property="per_minutas" value="2">
							<logic:equal name="bean_minuta" property="str_cerrada" value="1">
								<input disabled="true"  type="button"  value=<bean:message key="Application.Insert"/> onclick= "location.href='agreement_add.do'" />
							</logic:equal>
							<logic:equal name="bean_minuta" property="str_cerrada" value="0">
								<input  type="button"  value=<bean:message key="Application.Insert"/> onclick= "location.href='agreement_add.do'" />
							</logic:equal>
						</logic:equal>
					</td>
				</tr>
			<tr>
					<td colspan="7" class="formas-encabezado"></td>
				</tr>
        	<tr> 
         		<td class="formas-encabezado"><bean:message key="Agreement.id"/></td>
          	<td  class="formas-encabezado"><bean:message key="Agreement.draftId"/></td>
          	<td  class="formas-encabezado"><bean:message key="Agreement.content"/></td>
          	<td class="formas-encabezado"><bean:message key="Agreement.responsible.deliveryDate"/></td>
          	<td  class="formas-encabezado"><bean:message key="Agreement.responsible.name"/></td>
          	<td  class="formas-encabezado" colspan="2" ><bean:message key="DraftList.Actions"/></td>
        	</tr>
        	<logic:iterate id="acuerdos" name="lst_acuerdo"  indexId="int_i" scope="request">
        	  <tr class="info_formas"> 
	          		<td class="formas-backcolor1" align="center"><bean:write name="acuerdos" property="int_acuerdo"/>
	          		<td class="formas-backcolor1"><bean:write name="acuerdos" property="int_minuta"/></td>
	         		<td class="formas-backcolor1"><bean:write name="acuerdos" property="str_acuerdo"/></td>
	         		<td class="formas-backcolor1" align="center"><bean:write name="acuerdos" property="str_fecha"/></td>
	          		<td class="formas-backcolor1"><bean:write name="acuerdos" property="str_responsable"/></td>
	         		<td class="formas-backcolor1"><html:link action="/agreement_edit.do" name="acuerdos" property="map_id"><html:img page="/images/icn_editar.gif" border="0" width="24" height="24"/></html:link></td>
	         		<td class="formas-backcolor1">
	         			<logic:equal name="ses_usuario" property="per_minutas" value="2">
			         		<logic:equal name="bean_minuta" property="str_cerrada" value="1">
				         		<html:img page="/images/icn_eliminar.gif" border="0" width="24" height="24"/>
				         	</logic:equal>
		         			<logic:equal name="bean_minuta" property="str_cerrada" value="0">
				         		<html:link action="/agreement_delete.do" name="acuerdos" property="map_id"><html:img page="/images/icn_eliminar.gif" border="0" width="24" height="24"/></html:link>
				         	</logic:equal>
				         </logic:equal>
		         	</td>
        		</tr>
        	</logic:iterate> 
      	</table>
		  </td>
		</tr>		
  </table>  
</body>
</html:html>